﻿namespace ExamV5.WAPPage
{
    using ExamV5;
    using System;
    using System.Configuration;
    using System.Data;
    using System.Data.SqlClient;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class FrmJoinStudy : Page
    {
        protected GridView DataGridInfo;
        protected HtmlInputHidden ExamUserCode;
        protected HtmlForm Form1;
        protected HtmlHead Head1;
        private HttpCookie httpCookie_0 = null;
        private HttpCookie httpCookie_1 = null;
        private HttpCookie httpCookie_2 = null;
        private HttpCookie httpCookie_3 = null;
        private HttpCookie httpCookie_4 = null;
        private int int_0 = 0;
        protected Label labFen;
        protected Label labPaperFlag;
        protected Label labPerRubricType;
        protected Label labRecored;
        protected Label labRubricSortID;
        protected Label labTitle;
        protected Label labUserCode;
        private PublicFun publicFun_0 = new PublicFun();
        private string string_0 = "";
        private string string_1 = "";
        public string strJumpRubricID = "";
        protected HtmlInputHidden txtBSubmit;
        protected HtmlInputHidden txtErrorID;
        protected HtmlInputHidden txtHideComm;
        protected HtmlInputHidden txtHideEnter;
        protected HtmlInputHidden txtHideFocus;
        protected HtmlInputHidden txtRubricSortID;
        protected HtmlInputHidden txtSubPaper;
        protected HtmlInputHidden txtWriteID;

        private void method_0()
        {
            double num = 0.0;
            num = Convert.ToDouble(this.ViewState["PaperSumFen"]);
            double num2 = 0.0;
            string values = this.publicFun_0.GetValues(string.Concat(new object[] { "select StudyFen from GradeReule where PaperID=", this.int_0, " and (", num, ">=MinValue  and ", num, "<=MaxValue)" }), "StudyFen");
            if (values.Trim() == "")
            {
                values = "0";
            }
            num2 = Convert.ToDouble(values);
            string str2 = this.ViewState["ExamName"].ToString();
            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "delete  UserStudyFen where ExamOrStudy='E' and UserCode='", this.httpCookie_0.Value, "' and Formtable='PaperInfo' and FormID=", this.int_0, ";insert into UserStudyFen(UserCode,ExamStudyName,StudyFen,Formtable,FormID,ExamOrStudy) values('", this.httpCookie_0.Value, "','", str2, "','", num2, "','PaperInfo','", this.int_0, "','E')" }));
        }

        private void method_1()
        {
            int index = 0;
            string[] strArray = this.ViewState["SumRubricListID"].ToString().Split(new char[] { ',' });
            if (Convert.ToInt32(this.ViewState["NowRubricLocation"].ToString().Trim()) < 0)
            {
                this.ViewState["NowRubricLocation"] = "0";
            }
            this.labRecored.Text = "当前题数:" + ((Convert.ToInt32(this.ViewState["NowRubricLocation"].ToString().Trim()) + 1)).ToString() + "/" + strArray.Length.ToString();
            string[] strArray5 = this.ViewState["RubricFen"].ToString().Split(new char[] { '#' });
            string[] strArray6 = this.ViewState["RubricMemo"].ToString().Split(new char[] { '#' });
            string str = "";
            str = "<table   borderColor='#cccccc' cellSpacing='0' borderColorDark='#ffffff' cellPadding='0' width='100%' align='center' border='1' style='border-style:Solid;'>";
            str = str + "<tr height='25'><td align='left' bgcolor='#5AA6E4'>";
            Random random = new Random();
            for (int i = 0; i < strArray.Length; i++)
            {
                if (i.ToString() == this.ViewState["NowRubricLocation"].ToString().Trim())
                {
                    this.DataGridInfo.Visible = true;
                    string selectCommandText = "Select ID,SubjectID,RubricType,RubricTitle,OptionAnswer,OKAnswer from RubricInfo where ID=" + strArray[i].Trim();
                    SqlConnection selectConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                    SqlDataAdapter adapter = new SqlDataAdapter(selectCommandText, selectConnection);
                    DataSet dataSet = new DataSet();
                    adapter.Fill(dataSet, "SRubric");
                    this.DataGridInfo.DataSource = dataSet.Tables["SRubric"].DefaultView;
                    this.DataGridInfo.DataBind();
                    for (int j = 0; j < this.DataGridInfo.Rows.Count; j++)
                    {
                        string[] strArray2;
                        string[] strArray3;
                        string[] strArray7;
                        string[] strArray8;
                        string[] strArray9;
                        string[] strArray10;
                        string[] strArray11;
                        string[] strArray12;
                        string[] strArray13;
                        string[] strArray14;
                        string[] strArray15;
                        string[] strArray16;
                        string[] strArray18;
                        string[] strArray21;
                        string[] strArray22;
                        int num7;
                        int num8;
                        string text;
                        string str5;
                        ListItem item3;
                        int num9;
                        ListItem item4;
                        int num11;
                        string str6 = "";
                        string[] strArray25 = dataSet.Tables["SRubric"].Rows[j]["OptionAnswer"].ToString().Split(new char[] { '#' });
                        Label label7 = (Label) this.DataGridInfo.Rows[j].FindControl("labRubricType");
                        Label label6 = (Label) this.DataGridInfo.Rows[j].FindControl("labDataTitle");
                        Label label = (Label) this.DataGridInfo.Rows[j].FindControl("labOKAnswer");
                        Label label2 = (Label) this.DataGridInfo.Rows[j].FindControl("labRubricID");
                        Label label3 = (Label) this.DataGridInfo.Rows[j].FindControl("labUPFile");
                        Label label5 = (Label) this.DataGridInfo.Rows[j].FindControl("labUpLoadFile");
                        Label label4 = (Label) this.DataGridInfo.Rows[j].FindControl("labOpertionFile");
                        label4.Visible = false;
                        label3.Visible = false;
                        label5.Visible = false;
                        RadioButtonList list = (RadioButtonList) this.DataGridInfo.Rows[j].FindControl("RBLData");
                        CheckBoxList list2 = (CheckBoxList) this.DataGridInfo.Rows[j].FindControl("CBLData");
                        TextBox box2 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerA");
                        TextBox box3 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerB");
                        TextBox box4 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerC");
                        TextBox box5 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerD");
                        TextBox box6 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerE");
                        TextBox box7 = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtDAnswerF");
                        TextBox box = (TextBox) this.DataGridInfo.Rows[j].FindControl("txtAnswer");
                        box.Visible = false;
                        if (!(this.labPerRubricType.Text.Trim() != label7.Text.Trim()))
                        {
                            this.labRubricSortID.Text = Convert.ToString((int) (Convert.ToInt32(this.labRubricSortID.Text) + 1));
                        }
                        else
                        {
                            this.labPerRubricType.Text = label7.Text.Trim();
                            this.labRubricSortID.Text = "0";
                        }
                        switch (label7.Text.Trim())
                        {
                            case "A":
                                this.labPaperFlag.Text = "Y";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeA'></a><b>" + this.publicFun_0.GetRubricType("A", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[0] + "</font>分," + strArray6[0] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[0];
                                list.Visible = true;
                                num11 = 0;
                                goto Label_073C;

                            case "B":
                                this.labPaperFlag.Text = "Y";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeB'></a><b>" + this.publicFun_0.GetRubricType("B", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[1] + "</font>分," + strArray6[1] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[1];
                                list2.Visible = true;
                                num9 = 0;
                                goto Label_0C34;

                            case "C":
                            {
                                this.labPaperFlag.Text = "Y";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeC'></a><b>" + this.publicFun_0.GetRubricType("C", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[2] + "</font>分," + strArray6[2] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[2];
                                ListItem item = new ListItem("正确<br>", "Y");
                                list.Items.Insert(0, item);
                                ListItem item2 = new ListItem("错误<br>", "N");
                                list.Items.Insert(1, item2);
                                list.Visible = true;
                                strArray22 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricBWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricBWrite").Split(new char[] { '|' });
                                strArray21 = this.ViewState["RubricCListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_11C1;
                            }
                            case "D":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeD'></a><b>" + this.publicFun_0.GetRubricType("D", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[3] + "</font>分," + strArray6[3] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[3];
                                switch (label6.Text.ToString().Replace("___", "＃").Split(new char[] { '＃' }).Length)
                                {
                                    case 1:
                                        goto Label_1330;

                                    case 2:
                                        goto Label_1365;

                                    case 3:
                                        goto Label_139A;

                                    case 4:
                                        goto Label_13CF;

                                    case 5:
                                        goto Label_1404;

                                    case 6:
                                        goto Label_1436;

                                    case 7:
                                        goto Label_1468;
                                }
                                goto Label_1498;

                            case "E":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeE'></a><b>" + this.publicFun_0.GetRubricType("E", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[4] + "</font>分," + strArray6[4] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[4];
                                box.Visible = true;
                                strArray16 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricAWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricAWrite").Split(new char[] { '|' });
                                strArray15 = this.ViewState["RubricEListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_192C;

                            case "F":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeF'></a><b>" + this.publicFun_0.GetRubricType("F", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[5] + "</font>分," + strArray6[5] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[5];
                                box.Visible = true;
                                strArray14 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricCWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricCWrite").Split(new char[] { '|' });
                                strArray13 = this.ViewState["RubricFListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_1AF2;

                            case "G":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeG'></a><b>" + this.publicFun_0.GetRubricType("G", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[6] + "</font>分," + strArray6[6] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[6];
                                box.Visible = true;
                                strArray12 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricTWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricTWrite").Split(new char[] { '|' });
                                strArray11 = this.ViewState["RubricGListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_1CB8;

                            case "H":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeH'></a><b>" + this.publicFun_0.GetRubricType("H", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[7] + "</font>分," + strArray6[7] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[7];
                                box.Visible = true;
                                strArray10 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricAnWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricAnWrite").Split(new char[] { '|' });
                                strArray9 = this.ViewState["RubricHListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_1E7E;

                            case "I":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeI'></a><b>" + this.publicFun_0.GetRubricType("I", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[8] + "</font>分," + strArray6[8] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[8];
                                label3.Visible = true;
                                label5.Visible = true;
                                label4.Visible = true;
                                strArray8 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricOWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricOWrite").Split(new char[] { '|' });
                                strArray7 = this.ViewState["RubricIListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_2054;

                            case "J":
                                this.labPaperFlag.Text = "N";
                                this.labTitle.Text = str + "<font color='#ffffff'><a name='RubricTypeJ'></a><b>" + this.publicFun_0.GetRubricType("J", this.int_0.ToString()) + "</b>(每题<font color='#ff0000'>" + strArray5[9] + "</font>分," + strArray6[9] + ")</font></td></tr></table><br>";
                                this.labFen.Text = strArray5[9];
                                box.Visible = true;
                                strArray3 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricJWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricJWrite").Split(new char[] { '|' });
                                strArray2 = this.ViewState["RubricJListID"].ToString().Split(new char[] { ',' });
                                index = 0;
                                goto Label_22C3;

                            default:
                                goto Label_231E;
                        }
                    Label_0696:
                        if (strArray25[num11].Trim() != "")
                        {
                            switch (num11)
                            {
                                case 0:
                                    str6 = "A";
                                    break;

                                case 1:
                                    str6 = "B";
                                    break;

                                case 2:
                                    str6 = "C";
                                    break;

                                case 3:
                                    str6 = "D";
                                    break;

                                case 4:
                                    str6 = "E";
                                    break;

                                case 5:
                                    str6 = "F";
                                    break;
                            }
                            item4 = new ListItem(strArray25[num11].Replace("＃", "#"), str6);
                            list.Items.Add(item4);
                        }
                        num11++;
                    Label_073C:
                        if (num11 < strArray25.Length)
                        {
                            goto Label_0696;
                        }
                        if (!(!(this.ViewState["PaperFlag"].ToString().Trim() == "B") ? !(this.ViewState["PaperFlag"].ToString().Trim() == "D") : false))
                        {
                            num7 = 0;
                            while (num7 < 3)
                            {
                                num8 = random.Next(list.Items.Count);
                                text = "";
                                str5 = "";
                                text = list.Items[num8].Text;
                                str5 = list.Items[num8].Value;
                                list.Items.RemoveAt(num8);
                                item3 = new ListItem(text, str5);
                                list.Items.Insert(0, item3);
                                num7++;
                            }
                        }
                        for (int k = 0; k < list.Items.Count; k++)
                        {
                            switch (k)
                            {
                                case 0:
                                    list.Items[k].Text = "A、" + list.Items[k].Text + "<br>";
                                    break;

                                case 1:
                                    list.Items[k].Text = "B、" + list.Items[k].Text + "<br>";
                                    break;

                                case 2:
                                    list.Items[k].Text = "C、" + list.Items[k].Text + "<br>";
                                    break;

                                case 3:
                                    list.Items[k].Text = "D、" + list.Items[k].Text + "<br>";
                                    break;

                                case 4:
                                    list.Items[k].Text = "E、" + list.Items[k].Text + "<br>";
                                    break;

                                case 5:
                                    list.Items[k].Text = "F、" + list.Items[k].Text + "<br>";
                                    break;
                            }
                        }
                        string[] strArray27 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricSWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricSWrite").Split(new char[] { '|' });
                        string[] strArray26 = this.ViewState["RubricAListID"].ToString().Split(new char[] { ',' });
                        index = 0;
                        while (index < strArray26.Length)
                        {
                            if (label2.Text.Trim() == strArray26[index].Trim())
                            {
                                goto Label_0A89;
                            }
                            index++;
                        }
                        goto Label_231E;
                    Label_0A89:
                        if ((strArray27[index].Trim() != "") && (strArray27[index].Trim() != "未填写"))
                        {
                            list.Items.FindByValue(strArray27[index].Trim()).Selected = true;
                            this.txtBSubmit.Value = "1";
                        }
                        goto Label_231E;
                    Label_0B8E:
                        if (strArray25[num9].Trim() != "")
                        {
                            switch (num9)
                            {
                                case 0:
                                    str6 = "A";
                                    break;

                                case 1:
                                    str6 = "B";
                                    break;

                                case 2:
                                    str6 = "C";
                                    break;

                                case 3:
                                    str6 = "D";
                                    break;

                                case 4:
                                    str6 = "E";
                                    break;

                                case 5:
                                    str6 = "F";
                                    break;
                            }
                            item4 = new ListItem(strArray25[num9].Replace("＃", "#"), str6);
                            list2.Items.Add(item4);
                        }
                        num9++;
                    Label_0C34:
                        if (num9 < strArray25.Length)
                        {
                            goto Label_0B8E;
                        }
                        if (!(!(this.ViewState["PaperFlag"].ToString().Trim() == "B") ? !(this.ViewState["PaperFlag"].ToString().Trim() == "D") : false))
                        {
                            for (num7 = 0; num7 < 3; num7++)
                            {
                                num8 = random.Next(list2.Items.Count);
                                text = "";
                                str5 = "";
                                text = list2.Items[num8].Text;
                                str5 = list2.Items[num8].Value;
                                list2.Items.RemoveAt(num8);
                                item3 = new ListItem(text, str5);
                                list2.Items.Insert(0, item3);
                            }
                        }
                        for (int m = 0; m < list2.Items.Count; m++)
                        {
                            switch (m)
                            {
                                case 0:
                                    list2.Items[m].Text = "A、" + list2.Items[m].Text + "<br>";
                                    break;

                                case 1:
                                    list2.Items[m].Text = "B、" + list2.Items[m].Text + "<br>";
                                    break;

                                case 2:
                                    list2.Items[m].Text = "C、" + list2.Items[m].Text + "<br>";
                                    break;

                                case 3:
                                    list2.Items[m].Text = "D、" + list2.Items[m].Text + "<br>";
                                    break;

                                case 4:
                                    list2.Items[m].Text = "E、" + list2.Items[m].Text + "<br>";
                                    break;

                                case 5:
                                    list2.Items[m].Text = "F、" + list2.Items[m].Text + "<br>";
                                    break;
                            }
                        }
                        string[] strArray24 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricDWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricDWrite").Split(new char[] { '|' });
                        string[] strArray23 = this.ViewState["RubricBListID"].ToString().Split(new char[] { ',' });
                        index = 0;
                        while (index < strArray23.Length)
                        {
                            if (label2.Text.Trim() == strArray23[index].Trim())
                            {
                                goto Label_0F81;
                            }
                            index++;
                        }
                        goto Label_231E;
                    Label_0F81:
                        if ((strArray24[index].Trim() != "") && (strArray24[index].Trim() != "未填写"))
                        {
                            this.txtBSubmit.Value = "1";
                            strArray18 = strArray24[index].Trim().Split(new char[] { '#' });
                            for (int n = 0; n < strArray18.Length; n++)
                            {
                                if (strArray18[n].Trim() != "")
                                {
                                    list2.Items.FindByValue(strArray18[n].Trim()).Selected = true;
                                }
                            }
                        }
                        goto Label_231E;
                    Label_119E:
                        if (label2.Text.Trim() == strArray21[index].Trim())
                        {
                            goto Label_11CF;
                        }
                        index++;
                    Label_11C1:
                        if (index < strArray21.Length)
                        {
                            goto Label_119E;
                        }
                        goto Label_231E;
                    Label_11CF:
                        if (!((strArray22[index].Trim() != "") ? !(strArray22[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            list.Items.FindByValue(strArray22[index].Trim()).Selected = true;
                        }
                        goto Label_231E;
                    Label_1330:
                        box2.Visible = false;
                        box3.Visible = false;
                        box4.Visible = false;
                        box5.Visible = false;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1498;
                    Label_1365:
                        box2.Visible = true;
                        box3.Visible = false;
                        box4.Visible = false;
                        box5.Visible = false;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1498;
                    Label_139A:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = false;
                        box5.Visible = false;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1498;
                    Label_13CF:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = true;
                        box5.Visible = false;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1498;
                    Label_1404:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = true;
                        box5.Visible = true;
                        box6.Visible = false;
                        box7.Visible = false;
                        goto Label_1498;
                    Label_1436:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = true;
                        box5.Visible = true;
                        box6.Visible = true;
                        box7.Visible = false;
                        goto Label_1498;
                    Label_1468:
                        box2.Visible = true;
                        box3.Visible = true;
                        box4.Visible = true;
                        box5.Visible = true;
                        box6.Visible = true;
                        box7.Visible = true;
                    Label_1498:
                        box2.Attributes.Add("onpaste", "return false");
                        box3.Attributes.Add("onpaste", "return false");
                        box4.Attributes.Add("onpaste", "return false");
                        box5.Attributes.Add("onpaste", "return false");
                        box6.Attributes.Add("onpaste", "return false");
                        box7.Attributes.Add("onpaste", "return false");
                        string[] strArray19 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricFWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricFWrite").Split(new char[] { '|' });
                        string[] strArray17 = this.ViewState["RubricDListID"].ToString().Split(new char[] { ',' });
                        index = 0;
                        while (index < strArray17.Length)
                        {
                            if (label2.Text.Trim() == strArray17[index].Trim())
                            {
                                goto Label_15E1;
                            }
                            index++;
                        }
                        goto Label_231E;
                    Label_15E1:
                        if (!((strArray19[index].Trim() != "") ? !(strArray19[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            strArray18 = strArray19[index].Trim().Split(new char[] { '#' });
                            switch (strArray18.Length)
                            {
                                case 1:
                                    box2.Text = strArray18[0].Trim();
                                    break;

                                case 2:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    break;

                                case 3:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    box4.Text = strArray18[2].Trim();
                                    break;

                                case 4:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    box4.Text = strArray18[2].Trim();
                                    box5.Text = strArray18[3].Trim();
                                    break;

                                case 5:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    box4.Text = strArray18[2].Trim();
                                    box5.Text = strArray18[3].Trim();
                                    box6.Text = strArray18[4].Trim();
                                    break;

                                case 6:
                                    box2.Text = strArray18[0].Trim();
                                    box3.Text = strArray18[1].Trim();
                                    box4.Text = strArray18[2].Trim();
                                    box5.Text = strArray18[3].Trim();
                                    box6.Text = strArray18[4].Trim();
                                    box7.Text = strArray18[5].Trim();
                                    break;
                            }
                        }
                        goto Label_231E;
                    Label_1909:
                        if (label2.Text.Trim() == strArray15[index].Trim())
                        {
                            goto Label_193A;
                        }
                        index++;
                    Label_192C:
                        if (index < strArray15.Length)
                        {
                            goto Label_1909;
                        }
                        goto Label_231E;
                    Label_193A:
                        if (!((strArray16[index].Trim() != "") ? !(strArray16[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray16[index].Trim().Replace(" <br/>", "\n");
                        }
                        goto Label_231E;
                    Label_1ACF:
                        if (label2.Text.Trim() == strArray13[index].Trim())
                        {
                            goto Label_1B00;
                        }
                        index++;
                    Label_1AF2:
                        if (index < strArray13.Length)
                        {
                            goto Label_1ACF;
                        }
                        goto Label_231E;
                    Label_1B00:
                        if (!((strArray14[index].Trim() != "") ? !(strArray14[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray14[index].Trim().Replace(" <br/>", "\n");
                        }
                        goto Label_231E;
                    Label_1C95:
                        if (label2.Text.Trim() == strArray11[index].Trim())
                        {
                            goto Label_1CC6;
                        }
                        index++;
                    Label_1CB8:
                        if (index < strArray11.Length)
                        {
                            goto Label_1C95;
                        }
                        goto Label_231E;
                    Label_1CC6:
                        if (!((strArray12[index].Trim() != "") ? !(strArray12[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray12[index].Trim().Replace(" <br/>", "\n");
                        }
                        goto Label_231E;
                    Label_1E5B:
                        if (label2.Text.Trim() == strArray9[index].Trim())
                        {
                            goto Label_1E8C;
                        }
                        index++;
                    Label_1E7E:
                        if (index < strArray9.Length)
                        {
                            goto Label_1E5B;
                        }
                        goto Label_231E;
                    Label_1E8C:
                        if (!((strArray10[index].Trim() != "") ? !(strArray10[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray10[index].Trim().Replace(" <br/>", "\n");
                        }
                        goto Label_231E;
                    Label_2031:
                        if (label2.Text.Trim() == strArray7[index].Trim())
                        {
                            goto Label_2062;
                        }
                        index++;
                    Label_2054:
                        if (index < strArray7.Length)
                        {
                            goto Label_2031;
                        }
                        goto Label_231E;
                    Label_2062:
                        label4.Text = "<a href='../FrmDownLoad.aspx?FileName=" + dataSet.Tables["SRubric"].Rows[j]["OptionAnswer"].ToString() + "' target=_blank>下载原题</a><br><br>";
                        label5.Text = string.Concat(new object[] { "<iframe id='file' name='file' src='FrmUPLoadFile.aspx?PaperID=", this.int_0, "&ID=", label2.Text.Trim(), "&Sort=", index.ToString(), "' height='22px' width='500'  frameborder='0' scrolling='no'></iframe>" });
                        if (!((strArray8[index].Trim() != "") ? !(strArray8[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            label3.Text = "<a href='../FrmDownLoad.aspx?FileName=" + strArray8[index].Trim() + "' target=_blank>已作答试题</a>";
                        }
                        goto Label_231E;
                    Label_22A0:
                        if (label2.Text.Trim() == strArray2[index].Trim())
                        {
                            goto Label_22CE;
                        }
                        index++;
                    Label_22C3:
                        if (index < strArray2.Length)
                        {
                            goto Label_22A0;
                        }
                        goto Label_231E;
                    Label_22CE:
                        if (!((strArray3[index].Trim() != "") ? !(strArray3[index].Trim() != "未填写") : true))
                        {
                            this.txtBSubmit.Value = "1";
                            box.Text = strArray3[index].Trim();
                        }
                    Label_231E:
                        label.Visible = false;
                    }
                    adapter.Dispose();
                    dataSet.Clear();
                    dataSet.Dispose();
                    selectConnection.Close();
                    selectConnection.Dispose();
                }
            }
        }

        private void method_2(string string_2)
        {
            string strSql = "";
            double num = 0.0;
            if (!(string_2 == "B"))
            {
                strSql = string.Concat(new object[] { "update ExamUser set LastDate='", DateTime.Now.ToShortDateString(), "',Flag='", string_2, "' where UserCode='", this.httpCookie_0.Value.Trim(), "' and PaperID=", this.int_0 });
                this.publicFun_0.ExecuteSql(strSql);
                this.method_3(this.int_0.ToString(), this.httpCookie_0.Value);
            }
            else
            {
                num = 0.0;
                string str2 = Convert.ToString(base.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]);
                if (!(!(str2 == "") ? (str2 != null) : false))
                {
                    str2 = Convert.ToString(base.Request.ServerVariables["REMOTE_ADDR"]);
                }
                string str3 = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
                strSql = string.Concat(new object[] { "update ExamUser set JoinExamNum=JoinExamNum+1,StartTime='", str3, "', JoinDate='", DateTime.Now.ToShortDateString(), "',IsSave='1',LoginIP='", str2, "',Flag='", string_2, "',GetOldCountFen='", num.ToString(), "',GetCountFen='", num.ToString(), "' where UserCode='", this.httpCookie_0.Value.Trim(), "' and PaperID=", this.int_0 });
                this.publicFun_0.ExecuteSql(strSql);
            }
        }

        private void method_3(string string_2, string string_3)
        {
            string str = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
            string str2 = "E";
            double num2 = 0.0;
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand("select RubricSFen,RubricDFen,RubricBFen,RubricFFen,RubricAFen,RubricCFen,RubricTFen,RubricANFen,RubricOFen,RubricJFen from CheckPaper where UserCode='" + string_3 + "' and PaperID='" + string_2 + "'", connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            if (!reader.Read())
            {
                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update ExamUser set GetOldCountFen=", num2, ",GetCountFen=0,Flag='E',EndTime='", str, "',LastDate='", DateTime.Now.ToShortDateString(), "' where UserCode='", string_3, "' and PaperID='", string_2, "'" }));
                this.ViewState["PaperSumFen"] = num2;
            }
            else
            {
                int num3;
                if (((((reader["RubricJFen"].ToString().Trim() == "") && (reader["RubricFFen"].ToString().Trim() == "")) && ((reader["RubricAFen"].ToString().Trim() == "") && (reader["RubricCFen"].ToString().Trim() == ""))) && ((reader["RubricTFen"].ToString().Trim() == "") && (reader["RubricANFen"].ToString().Trim() == ""))) && !(reader["RubricOFen"].ToString().Trim() != ""))
                {
                    str2 = "E";
                }
                else
                {
                    str2 = "D";
                }
                if (reader["RubricSFen"].ToString().Trim() != "")
                {
                    string[] strArray11 = reader["RubricSFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray11.Length; num3++)
                    {
                        if (strArray11[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray11[num3].Trim());
                        }
                    }
                }
                if (reader["RubricDFen"].ToString().Trim() != "")
                {
                    string[] strArray10 = reader["RubricDFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray10.Length; num3++)
                    {
                        if (strArray10[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray10[num3].Trim());
                        }
                    }
                }
                if (reader["RubricBFen"].ToString().Trim() != "")
                {
                    string[] strArray9 = reader["RubricBFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray9.Length; num3++)
                    {
                        if (strArray9[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray9[num3].Trim());
                        }
                    }
                }
                if (reader["RubricFFen"].ToString().Trim() != "")
                {
                    string[] strArray8 = reader["RubricFFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray8.Length; num3++)
                    {
                        if (strArray8[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray8[num3].Trim());
                        }
                    }
                }
                if (reader["RubricAFen"].ToString().Trim() != "")
                {
                    string[] strArray7 = reader["RubricAFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray7.Length; num3++)
                    {
                        if (strArray7[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray7[num3].Trim());
                        }
                    }
                }
                if (reader["RubricCFen"].ToString().Trim() != "")
                {
                    string[] strArray6 = reader["RubricCFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray6.Length; num3++)
                    {
                        if (strArray6[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray6[num3].Trim());
                        }
                    }
                }
                if (reader["RubricANFen"].ToString().Trim() != "")
                {
                    string[] strArray5 = reader["RubricANFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray5.Length; num3++)
                    {
                        if (strArray5[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray5[num3].Trim());
                        }
                    }
                }
                if (reader["RubricTFen"].ToString().Trim() != "")
                {
                    string[] strArray4 = reader["RubricTFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray4.Length; num3++)
                    {
                        if (strArray4[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray4[num3].Trim());
                        }
                    }
                }
                if (reader["RubricOFen"].ToString().Trim() != "")
                {
                    string[] strArray3 = reader["RubricOFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray3.Length; num3++)
                    {
                        if (strArray3[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray3[num3].Trim());
                        }
                    }
                }
                if (reader["RubricJFen"].ToString().Trim() != "")
                {
                    string[] strArray2 = reader["RubricJFen"].ToString().Trim().Split(new char[] { '|' });
                    for (num3 = 0; num3 < strArray2.Length; num3++)
                    {
                        if (strArray2[num3].Trim() != "")
                        {
                            num2 += Convert.ToDouble(strArray2[num3].Trim());
                        }
                    }
                }
                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update ExamUser set GetOldCountFen=", num2, ",GetCountFen=", num2, ",Flag='", str2, "',EndTime='", str, "',LastDate='", DateTime.Now.ToShortDateString(), "' where UserCode='", string_3, "' and PaperID='", string_2, "'" }));
                this.ViewState["PaperSumFen"] = num2;
            }
            reader.Close();
            command.Dispose();
            connection.Close();
            connection.Dispose();
        }

        private void method_4()
        {
            string str2 = "";
            string str3 = "";
            string str4 = "";
            string str5 = "";
            string str6 = "";
            string str7 = "";
            string str8 = "";
            string str9 = "";
            string str10 = "";
            string str11 = "";
            string str12 = "";
            string str13 = "";
            string str14 = "";
            string str15 = "";
            this.ViewState["NoWrite"] = "";
            this.ViewState["ErrFen"] = "";
            this.ViewState["ExamName"] = "";
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand(string.Concat(new object[] { "select a.NoWriteFen,a.ErrorFen,a.ExamTime,a.PaperStatus,a.IsShow,a.StartIP,a.EndIP,a.Flag,a.ExamName,b.SortInfo,a.RubricDist,a.FenDist,a.MemoDist,b.RubricS,b.RubricD,b.RubricB,b.RubricF,b.RubricA,b.RubricC,b.RubricT,b.RubricAN,b.RubricO,b.RubricJ  from PaperInfo a ,PaperData b where  b.UserCode='", this.httpCookie_0.Value, "' and a.ID=b.PaperID and a.ID=", this.int_0 }), connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            if (reader.Read())
            {
                this.ViewState["NoWrite"] = reader["NoWriteFen"].ToString();
                this.ViewState["ErrFen"] = reader["ErrorFen"].ToString();
                this.ViewState["ExamName"] = reader["ExamName"].ToString();
                this.ViewState["PaperFlag"] = reader["Flag"].ToString();
                this.string_1 = reader["ExamName"].ToString();
                str2 = reader["RubricDist"].ToString();
                str3 = reader["FenDist"].ToString();
                str4 = reader["MemoDist"].ToString();
                str5 = reader["SortInfo"].ToString();
                this.ViewState["RubricMemo"] = str4;
                this.ViewState["RubricFen"] = str3;
                this.ViewState["RubricSort"] = str5;
                str6 = reader["RubricS"].ToString();
                str7 = reader["RubricD"].ToString();
                str8 = reader["RubricB"].ToString();
                str9 = reader["RubricF"].ToString();
                str10 = reader["RubricA"].ToString();
                str11 = reader["RubricC"].ToString();
                str12 = reader["RubricT"].ToString();
                str13 = reader["RubricAN"].ToString();
                str14 = reader["RubricO"].ToString();
                str15 = reader["RubricJ"].ToString();
                this.ViewState["ExamType"] = reader["PaperStatus"].ToString();
            }
            reader.Close();
            command.Dispose();
            connection.Close();
            connection.Dispose();
            string[] strArray2 = str2.Split(new char[] { '#' });
            str3.Split(new char[] { '#' });
            str4.Split(new char[] { '#' });
            string[] strArray = str5.Split(new char[] { '#' });
            if (strArray2.Length <= 1)
            {
                base.Response.Write("<script>alert('对不起，没有读取到相关数据！');window.close();</script>");
            }
            else
            {
                if (strArray2[0] != "0")
                {
                    this.method_5(str6, strArray[0], "A");
                }
                if (strArray2[1] != "0")
                {
                    this.method_5(str7, strArray[1], "B");
                }
                if (strArray2[2] != "0")
                {
                    this.method_5(str8, strArray[2], "C");
                }
                if (strArray2[3] != "0")
                {
                    this.method_5(str9, strArray[3], "D");
                }
                if (strArray2[4] != "0")
                {
                    this.method_5(str10, strArray[4], "E");
                }
                if (strArray2[5] != "0")
                {
                    this.method_5(str11, strArray[5], "F");
                }
                if (strArray2[6] != "0")
                {
                    this.method_5(str12, strArray[6], "G");
                }
                if (strArray2[7] != "0")
                {
                    this.method_5(str13, strArray[7], "H");
                }
                if (strArray2[8] != "0")
                {
                    this.method_5(str14, strArray[8], "I");
                }
                if (strArray2[9] != "0")
                {
                    this.method_5(str15, strArray[9], "J");
                }
            }
        }

        private void method_5(string string_2, string string_3, string string_4)
        {
            SqlConnection connection3;
            SqlCommand command3;
            SqlConnection connection4;
            SqlCommand command4;
            SqlConnection connection5;
            SqlCommand command5;
            SqlConnection connection6;
            SqlCommand command6;
            SqlConnection connection7;
            SqlCommand command7;
            string strSql = "";
            string str2 = "Select ID from RubricInfo ";
            str2 = str2 + " where ID in(" + string_2.Replace("#", ",") + "0) order by " + string_3;
            this.ViewState["SumRubricListID"] = this.ViewState["SumRubricListID"] + this.publicFun_0.GetValues(str2);
            strSql = str2;
            string str3 = "";
            string str4 = "";
            string str5 = "";
            str2 = "Select OKAnswer from RubricInfo ";
            str2 = str2 + " where ID in(" + string_2.Replace("#", ",") + "0) order by " + string_3;
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand(str2, connection);
            SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);
            while (reader.Read())
            {
                str3 = str3 + reader[0].ToString() + "|";
                str4 = str4 + "0|";
                str5 = str5 + "未填写|";
            }
            reader.Close();
            command.Dispose();
            connection.Close();
            connection.Dispose();
            if (this.publicFun_0.GetValues(string.Concat(new object[] { "select PaperID from CheckPaper where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), "PaperID") != "")
            {
                switch (string_4)
                {
                    case "A":
                        this.ViewState["RubricAListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set CheckUserS='系统自动批改',RubricSWrite='", str5, "',RubricSOK='", str3, "',RubricSFen='", str4, "' where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }));
                        }
                        break;

                    case "B":
                        this.ViewState["RubricBListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set CheckUserD='系统自动批改',RubricDWrite='", str5, "',RubricDOK='", str3, "',RubricDFen='", str4, "' where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }));
                        }
                        break;

                    case "C":
                        this.ViewState["RubricCListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set CheckUserB='系统自动批改',RubricBWrite='", str5, "',RubricBOK='", str3, "',RubricBFen='", str4, "' where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }));
                        }
                        break;

                    case "D":
                        this.ViewState["RubricDListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection7 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection7.Open();
                            command7 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserF=@CheckUserF,RubricFWrite=@RubricFWrite,RubricFOK=@RubricFOK,RubricFFen=@RubricFFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection7);
                            command7.Parameters.Add("@CheckUserF", SqlDbType.VarChar, 50).Value = "还未批改";
                            command7.Parameters.Add("@RubricFWrite", SqlDbType.Text).Value = str5;
                            command7.Parameters.Add("@RubricFOK", SqlDbType.Text).Value = str3;
                            command7.Parameters.Add("@RubricFFen", SqlDbType.VarChar, 0x1388).Value = str4;
                            command7.ExecuteNonQuery();
                            command7.Dispose();
                            connection7.Close();
                            connection7.Dispose();
                        }
                        break;

                    case "E":
                        this.ViewState["RubricEListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection6 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection6.Open();
                            command6 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserA=@CheckUserA,RubricAWrite=@RubricAWrite,RubricAOK=@RubricAOK,RubricAFen=@RubricAFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection6);
                            command6.Parameters.Add("@CheckUserA", SqlDbType.VarChar, 50).Value = "还未批改";
                            command6.Parameters.Add("@RubricAWrite", SqlDbType.Text).Value = str5;
                            command6.Parameters.Add("@RubricAOK", SqlDbType.Text).Value = str3;
                            command6.Parameters.Add("@RubricAFen", SqlDbType.VarChar, 0x1388).Value = str4;
                            command6.ExecuteNonQuery();
                            command6.Dispose();
                            connection6.Close();
                            connection6.Dispose();
                        }
                        break;

                    case "F":
                        this.ViewState["RubricFListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection5 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection5.Open();
                            command5 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserC=@CheckUserC,RubricCWrite=@RubricCWrite,RubricCOK=@RubricCOK,RubricCFen=@RubricCFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection5);
                            command5.Parameters.Add("@CheckUserC", SqlDbType.VarChar, 50).Value = "还未批改";
                            command5.Parameters.Add("@RubricCWrite", SqlDbType.Text).Value = str5;
                            command5.Parameters.Add("@RubricCOK", SqlDbType.Text).Value = str3;
                            command5.Parameters.Add("@RubricCFen", SqlDbType.VarChar, 0x1388).Value = str4;
                            command5.ExecuteNonQuery();
                            command5.Dispose();
                            connection5.Close();
                            connection5.Dispose();
                        }
                        break;

                    case "G":
                        this.ViewState["RubricGListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection4 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection4.Open();
                            command4 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserT=@CheckUserT,RubricTWrite=@RubricTWrite,RubricTOK=@RubricTOK,RubricTFen=@RubricTFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection4);
                            command4.Parameters.Add("@CheckUserT", SqlDbType.VarChar, 50).Value = "还未批改";
                            command4.Parameters.Add("@RubricTWrite", SqlDbType.Text).Value = str5;
                            command4.Parameters.Add("@RubricTOK", SqlDbType.Text).Value = str3;
                            command4.Parameters.Add("@RubricTFen", SqlDbType.VarChar, 0x1388).Value = str4;
                            command4.ExecuteNonQuery();
                            command4.Dispose();
                            connection4.Close();
                            connection4.Dispose();
                        }
                        break;

                    case "H":
                        this.ViewState["RubricHListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection3 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection3.Open();
                            command3 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserAN=@CheckUserAN,RubricANWrite=@RubricANWrite,RubricANOK=@RubricANOK,RubricANFen=@RubricANFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection3);
                            command3.Parameters.Add("@CheckUserAN", SqlDbType.VarChar, 50).Value = "还未批改";
                            command3.Parameters.Add("@RubricANWrite", SqlDbType.Text).Value = str5;
                            command3.Parameters.Add("@RubricANOK", SqlDbType.Text).Value = str3;
                            command3.Parameters.Add("@RubricANFen", SqlDbType.VarChar, 0x1388).Value = str4;
                            command3.ExecuteNonQuery();
                            command3.Dispose();
                            connection3.Close();
                            connection3.Dispose();
                        }
                        break;

                    case "I":
                        this.ViewState["RubricIListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set CheckUserO='还未批改',RubricOWrite='", str5, "',RubricOOK='", str3, "',RubricOFen='", str4, "' where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }));
                        }
                        break;

                    case "J":
                        this.ViewState["RubricJListID"] = this.publicFun_0.GetValues(strSql);
                        if (this.ViewState["IsSave"].ToString() == "0")
                        {
                            connection7 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                            connection7.Open();
                            command7 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserJ=@CheckUserJ,RubricJWrite=@RubricJWrite,RubricJOK=@RubricJOK,RubricJFen=@RubricJFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection7);
                            command7.Parameters.Add("@CheckUserJ", SqlDbType.VarChar, 50).Value = "还未批改";
                            command7.Parameters.Add("@RubricJWrite", SqlDbType.Text).Value = str5;
                            command7.Parameters.Add("@RubricJOK", SqlDbType.Text).Value = str3;
                            command7.Parameters.Add("@RubricJFen", SqlDbType.VarChar, 0x1388).Value = str4;
                            command7.ExecuteNonQuery();
                            command7.Dispose();
                            connection7.Close();
                            connection7.Dispose();
                        }
                        break;
                }
            }
            else
            {
                string str8 = "insert into CheckPaper(UserCode,PaperID,RubricSWrite,RubricDWrite,RubricBWrite,RubricFWrite,RubricAWrite,RubricCWrite,RubricTWrite,RubricANWrite,RubricSOK,RubricDOK,RubricBOK,RubricFOK,RubricAOK,RubricCOK,RubricTOK,RubricANOK,RubricSFen,RubricDFen,RubricBFen,RubricFFen,RubricAFen,RubricCFen,RubricTFen,RubricANFen,CheckUserS,CheckUserD,CheckUserB,CheckUserF,CheckUserA,CheckUserC,CheckUserT,CheckUserAN,RubricOWrite,RubricOOK,RubricOFen,CheckUserO,RubricJWrite,RubricJOK,RubricJFen,CheckUserJ) values ";
                switch (string_4)
                {
                    case "A":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'", str5, "','','','','','','','','", str3, "','','','','','','','','", str4, "','','','','','','','','系统自动批改','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        this.ViewState["RubricAListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "B":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','", str5, "','','','','','','','','", str3, "','','','','','','','','", str4, "','','','','','','','','系统自动批改','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        this.ViewState["RubricBListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "C":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','", str5, "','','','','','','','','", str3, "','','','','','','','','", str4, "','','','','','','','','系统自动批改','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        this.ViewState["RubricCListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "D":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection7 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection7.Open();
                        command7 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserF=@CheckUserF,RubricFWrite=@RubricFWrite,RubricFOK=@RubricFOK,RubricFFen=@RubricFFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection7);
                        command7.Parameters.Add("@CheckUserF", SqlDbType.VarChar, 50).Value = "还未批改";
                        command7.Parameters.Add("@RubricFWrite", SqlDbType.Text).Value = str5;
                        command7.Parameters.Add("@RubricFOK", SqlDbType.Text).Value = str3;
                        command7.Parameters.Add("@RubricFFen", SqlDbType.VarChar, 0x1388).Value = str4;
                        command7.ExecuteNonQuery();
                        command7.Dispose();
                        connection7.Close();
                        connection7.Dispose();
                        this.ViewState["RubricDListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "E":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection6 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection6.Open();
                        command6 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserA=@CheckUserA,RubricAWrite=@RubricAWrite,RubricAOK=@RubricAOK,RubricAFen=@RubricAFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection6);
                        command6.Parameters.Add("@CheckUserA", SqlDbType.VarChar, 50).Value = "还未批改";
                        command6.Parameters.Add("@RubricAWrite", SqlDbType.Text).Value = str5;
                        command6.Parameters.Add("@RubricAOK", SqlDbType.Text).Value = str3;
                        command6.Parameters.Add("@RubricAFen", SqlDbType.VarChar, 0x1388).Value = str4;
                        command6.ExecuteNonQuery();
                        command6.Dispose();
                        connection6.Close();
                        connection6.Dispose();
                        this.ViewState["RubricEListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "F":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection5 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection5.Open();
                        command5 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserC=@CheckUserC,RubricCWrite=@RubricCWrite,RubricCOK=@RubricCOK,RubricCFen=@RubricCFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection5);
                        command5.Parameters.Add("@CheckUserC", SqlDbType.VarChar, 50).Value = "还未批改";
                        command5.Parameters.Add("@RubricCWrite", SqlDbType.Text).Value = str5;
                        command5.Parameters.Add("@RubricCOK", SqlDbType.Text).Value = str3;
                        command5.Parameters.Add("@RubricCFen", SqlDbType.VarChar, 0x1388).Value = str4;
                        command5.ExecuteNonQuery();
                        command5.Dispose();
                        connection5.Close();
                        connection5.Dispose();
                        this.ViewState["RubricFListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "G":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection4 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection4.Open();
                        command4 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserT=@CheckUserT,RubricTWrite=@RubricTWrite,RubricTOK=@RubricTOK,RubricTFen=@RubricTFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection4);
                        command4.Parameters.Add("@CheckUserT", SqlDbType.VarChar, 50).Value = "还未批改";
                        command4.Parameters.Add("@RubricTWrite", SqlDbType.Text).Value = str5;
                        command4.Parameters.Add("@RubricTOK", SqlDbType.Text).Value = str3;
                        command4.Parameters.Add("@RubricTFen", SqlDbType.VarChar, 0x1388).Value = str4;
                        command4.ExecuteNonQuery();
                        command4.Dispose();
                        connection4.Close();
                        connection4.Dispose();
                        this.ViewState["RubricGListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "H":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        connection3 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection3.Open();
                        command3 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserAN=@CheckUserAN,RubricANWrite=@RubricANWrite,RubricANOK=@RubricANOK,RubricANFen=@RubricANFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection3);
                        command3.Parameters.Add("@CheckUserAN", SqlDbType.VarChar, 50).Value = "还未批改";
                        command3.Parameters.Add("@RubricANWrite", SqlDbType.Text).Value = str5;
                        command3.Parameters.Add("@RubricANOK", SqlDbType.Text).Value = str3;
                        command3.Parameters.Add("@RubricANFen", SqlDbType.VarChar, 0x1388).Value = str4;
                        command3.ExecuteNonQuery();
                        command3.Dispose();
                        connection3.Close();
                        connection3.Dispose();
                        this.ViewState["RubricHListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "I":
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','", str5, "','", str3, "','", str4, "','还未批改','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        this.ViewState["RubricIListID"] = this.publicFun_0.GetValues(strSql);
                        break;

                    case "J":
                    {
                        str8 = string.Concat(new object[] { str8, "('", this.httpCookie_0.Value, "',", this.int_0, ",'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','')" });
                        this.publicFun_0.ExecuteSql(str8);
                        SqlConnection connection2 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                        connection2.Open();
                        SqlCommand command2 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set CheckUserJ=@CheckUserJ,RubricJWrite=@RubricJWrite,RubricJOK=@RubricJOK,RubricJFen=@RubricJFen  where PaperID=", this.int_0, " and UserCode='", this.httpCookie_0.Value, "'" }), connection2);
                        command2.Parameters.Add("@CheckUserJ", SqlDbType.VarChar, 50).Value = "还未批改";
                        command2.Parameters.Add("@RubricJWrite", SqlDbType.Text).Value = str5;
                        command2.Parameters.Add("@RubricJOK", SqlDbType.Text).Value = str3;
                        command2.Parameters.Add("@RubricJFen", SqlDbType.VarChar, 0x3e8).Value = str4;
                        command2.ExecuteNonQuery();
                        command2.Dispose();
                        connection2.Close();
                        connection2.Dispose();
                        this.ViewState["RubricJListID"] = this.publicFun_0.GetValues(strSql);
                        break;
                    }
                }
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.httpCookie_0 = new HttpCookie("ExamUserCode");
            this.httpCookie_0 = base.Request.Cookies["ExamUserCode"];
            this.httpCookie_1 = new HttpCookie("ExamUserName");
            this.httpCookie_1 = base.Request.Cookies["ExamUserName"];
            this.httpCookie_2 = new HttpCookie("ExamUserLevel");
            this.httpCookie_2 = base.Request.Cookies["ExamUserLevel"];
            this.httpCookie_3 = new HttpCookie("ExamDeptID");
            this.httpCookie_3 = base.Request.Cookies["ExamDeptID"];
            this.httpCookie_4 = new HttpCookie("ExamDeptName");
            this.httpCookie_4 = base.Request.Cookies["ExamDeptName"];
            if ((this.httpCookie_0 != null) ? !(this.httpCookie_0.Value == "") : false)
            {
                this.int_0 = Convert.ToInt32(base.Request["ID"].ToString());
                base.Response.Cache.SetCacheability(HttpCacheability.NoCache);
                base.Response.Cache.SetNoStore();
                this.httpCookie_0.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_0.Value));
                this.httpCookie_1.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_1.Value));
                this.httpCookie_2.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_2.Value));
                this.httpCookie_3.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_3.Value));
                this.httpCookie_4.Value = this.publicFun_0.CheckString(base.Server.UrlDecode(this.httpCookie_4.Value));
                this.ExamUserCode.Value = this.httpCookie_0.Value;
                if (base.IsPostBack)
                {
                    if (this.ViewState["NowRubricLocation"].ToString() == this.txtRubricSortID.Value.Trim())
                    {
                        try
                        {
                            int index = 0;
                            string str = "";
                            string str2 = "";
                            string str3 = "";
                            string[] strArray2 = this.ViewState["NoWrite"].ToString().Split(new char[] { '#' });
                            string[] strArray3 = this.ViewState["ErrFen"].ToString().Split(new char[] { '#' });
                            for (int i = 0; i < this.DataGridInfo.Rows.Count; i++)
                            {
                                string[] strArray5;
                                string[] strArray6;
                                int num8;
                                string str7;
                                string str8;
                                string[] strArray10;
                                string[] strArray11;
                                string[] strArray12;
                                int num12;
                                string[] strArray13;
                                string[] strArray14;
                                string[] strArray15;
                                int num14;
                                int num16;
                                int num19;
                                string[] strArray17;
                                string[] strArray18;
                                string[] strArray19;
                                int num21;
                                string[] strArray21;
                                string[] strArray22;
                                string[] strArray23;
                                int num26;
                                string[] strArray24;
                                string[] strArray25;
                                string[] strArray26;
                                int num28;
                                string[] strArray28;
                                string[] strArray29;
                                string[] strArray30;
                                int num33;
                                string[] strArray33;
                                string[] strArray34;
                                string[] strArray35;
                                string[] strArray36;
                                string[] strArray37;
                                string str35;
                                string[] strArray38;
                                string[] strArray39;
                                string[] strArray40;
                                int num40;
                                string[] strArray41;
                                string[] strArray42;
                                string[] strArray43;
                                int num42;
                                double num43;
                                int num44;
                                string[] strArray44;
                                int num45;
                                string[] strArray45;
                                double num46;
                                int num47;
                                string str40;
                                int num51;
                                string[] strArray48;
                                string[] strArray49;
                                string[] strArray50;
                                int num52;
                                string[] strArray51;
                                string str27 = "";
                                Label label3 = (Label) this.DataGridInfo.Rows[i].FindControl("labRubricType");
                                Label label = (Label) this.DataGridInfo.Rows[i].FindControl("labOKAnswer");
                                Label label2 = (Label) this.DataGridInfo.Rows[i].FindControl("labRubricID");
                                label.Text = label.Text.Replace("<BR>", "").Replace("<br>", "").Replace("&nbsp;", "").ToUpper();
                                RadioButtonList list = (RadioButtonList) this.DataGridInfo.Rows[i].FindControl("RBLData");
                                Label label1 = (Label) this.DataGridInfo.Rows[i].FindControl("labUPFile");
                                Label label5 = (Label) this.DataGridInfo.Rows[i].FindControl("labUpLoadFile");
                                CheckBoxList list2 = (CheckBoxList) this.DataGridInfo.Rows[i].FindControl("CBLData");
                                TextBox box7 = (TextBox) this.DataGridInfo.Rows[i].FindControl("txtDAnswerA");
                                TextBox box6 = (TextBox) this.DataGridInfo.Rows[i].FindControl("txtDAnswerB");
                                TextBox box5 = (TextBox) this.DataGridInfo.Rows[i].FindControl("txtDAnswerC");
                                TextBox box4 = (TextBox) this.DataGridInfo.Rows[i].FindControl("txtDAnswerD");
                                TextBox box3 = (TextBox) this.DataGridInfo.Rows[i].FindControl("txtDAnswerE");
                                TextBox box2 = (TextBox) this.DataGridInfo.Rows[i].FindControl("txtDAnswerF");
                                TextBox box = (TextBox) this.DataGridInfo.Rows[i].FindControl("txtAnswer");
                                box.Attributes.Add("onpaste", "return false");
                                switch (label3.Text.Trim())
                                {
                                    case "A":
                                    {
                                        num52 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "系统自动批改";
                                        string values = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricSWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricSWrite");
                                        string str44 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricSFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricSFen");
                                        strArray49 = values.Split(new char[] { '|' });
                                        strArray50 = str44.Split(new char[] { '|' });
                                        strArray51 = this.ViewState["RubricAListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_0758;
                                    }
                                    case "B":
                                    {
                                        num42 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "系统自动批改";
                                        str40 = this.publicFun_0.GetValues("select ParmValue from SysParmInfo where ParmMemo='IsCheckBRubric'", "ParmValue").Trim();
                                        string str41 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricDWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricDWrite");
                                        string str42 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricDFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricDFen");
                                        strArray42 = str41.Split(new char[] { '|' });
                                        strArray43 = str42.Split(new char[] { '|' });
                                        strArray48 = this.ViewState["RubricBListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_0C30;
                                    }
                                    case "C":
                                    {
                                        num40 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "系统自动批改";
                                        string str38 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricBWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricBWrite");
                                        string str39 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricBFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricBFen");
                                        strArray39 = str38.Split(new char[] { '|' });
                                        strArray40 = str39.Split(new char[] { '|' });
                                        strArray41 = this.ViewState["RubricCListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_16E9;
                                    }
                                    case "D":
                                    {
                                        num33 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str36 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricFWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricFWrite");
                                        string str37 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricFFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricFFen");
                                        strArray29 = str36.Split(new char[] { '|' });
                                        strArray30 = str37.Split(new char[] { '|' });
                                        strArray38 = this.ViewState["RubricDListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_1BA5;
                                    }
                                    case "E":
                                    {
                                        num28 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str24 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricAWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricAWrite");
                                        string str25 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricAFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricAFen");
                                        strArray25 = str24.Split(new char[] { '|' });
                                        strArray26 = str25.Split(new char[] { '|' });
                                        strArray28 = this.ViewState["RubricEListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_3266;
                                    }
                                    case "F":
                                    {
                                        num26 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str21 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricCWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricCWrite");
                                        string str22 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricCFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricCFen");
                                        strArray22 = str21.Split(new char[] { '|' });
                                        strArray23 = str22.Split(new char[] { '|' });
                                        strArray24 = this.ViewState["RubricFListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_37CA;
                                    }
                                    case "G":
                                    {
                                        num21 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str18 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricTWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricTWrite");
                                        string str19 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricTFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricTFen");
                                        strArray18 = str18.Split(new char[] { '|' });
                                        strArray19 = str19.Split(new char[] { '|' });
                                        strArray21 = this.ViewState["RubricGListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_3C09;
                                    }
                                    case "H":
                                    {
                                        num14 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str15 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricANWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricANWrite");
                                        string str16 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricANFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricANFen");
                                        strArray14 = str15.Split(new char[] { '|' });
                                        strArray15 = str16.Split(new char[] { '|' });
                                        strArray17 = this.ViewState["RubricHListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_416D;
                                    }
                                    case "I":
                                    {
                                        num12 = 0;
                                        str = "";
                                        str2 = "";
                                        str3 = "还未批改";
                                        string str12 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricOWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricOWrite");
                                        string str13 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricOFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricOFen");
                                        strArray11 = str12.Split(new char[] { '|' });
                                        strArray12 = str13.Split(new char[] { '|' });
                                        strArray13 = this.ViewState["RubricIListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_4695;
                                    }
                                    case "J":
                                    {
                                        str3 = "还未批改";
                                        num8 = 0;
                                        str = "";
                                        str2 = "";
                                        string str9 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricJWrite from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricJWrite");
                                        string str10 = this.publicFun_0.GetValues(string.Concat(new object[] { "select RubricJFen from CheckPaper where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), "RubricJFen");
                                        strArray5 = str9.Split(new char[] { '|' });
                                        strArray6 = str10.Split(new char[] { '|' });
                                        strArray10 = this.ViewState["RubricJListID"].ToString().Split(new char[] { ',' });
                                        index = 0;
                                        goto Label_4A0B;
                                    }
                                    default:
                                    {
                                        continue;
                                    }
                                }
                            Label_0735:
                                if (label2.Text.Trim() == strArray51[index].Trim())
                                {
                                    goto Label_0763;
                                }
                                index++;
                            Label_0758:
                                if (index < strArray51.Length)
                                {
                                    goto Label_0735;
                                }
                                goto Label_0766;
                            Label_0763:
                                num52 = index;
                            Label_0766:
                                if (list.SelectedIndex == -1)
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    strArray49[num52] = "未填写";
                                    strArray50[num52] = "-" + strArray2[0].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray2[0].Trim())));
                                }
                                else
                                {
                                    if (label.Text.Trim().Replace("<BR>", "").Replace("<br>", "").Replace("&nbsp;", "").ToUpper() == list.SelectedItem.Value.Trim())
                                    {
                                        strArray50[num52] = this.labFen.Text.Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(this.labFen.Text.Trim())));
                                    }
                                    else
                                    {
                                        strArray50[num52] = "-" + strArray3[0].Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[0].Trim())));
                                    }
                                    strArray49[num52] = list.SelectedItem.Value.Trim();
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                str = "";
                                str2 = "";
                                int num35 = 0;
                                while (num35 < strArray49.Length)
                                {
                                    if (strArray49[num35].Trim() != "")
                                    {
                                        str = str + strArray49[num35].Trim() + "|";
                                        str2 = str2 + strArray50[num35].Trim() + "|";
                                    }
                                    num35++;
                                }
                                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set RubricSWrite='", str, "',RubricSFen='", str2, "',CheckUserS='", str3, "'  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }));
                                continue;
                            Label_0C0D:
                                if (label2.Text.Trim() == strArray48[index].Trim())
                                {
                                    goto Label_0C3B;
                                }
                                index++;
                            Label_0C30:
                                if (index < strArray48.Length)
                                {
                                    goto Label_0C0D;
                                }
                                goto Label_0C3E;
                            Label_0C3B:
                                num42 = index;
                            Label_0C3E:
                                num51 = 0;
                                while (num51 < list2.Items.Count)
                                {
                                    if (list2.Items[num51].Selected)
                                    {
                                        str27 = str27 + list2.Items[num51].Value + "#";
                                    }
                                    num51++;
                                }
                                if (str27.Length <= 0)
                                {
                                    goto Label_143E;
                                }
                                str27 = str27.Substring(0, str27.Length - 1);
                                strArray42[num42] = str27;
                                if (this.txtSubPaper.Value.Trim() == "1")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                    this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                if (this.txtSubPaper.Value.Trim() == "2")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                if (!(!(str40.Trim() == "") ? !(str40.Trim() == "Y") : false))
                                {
                                    goto Label_125B;
                                }
                                if (str40 != "N")
                                {
                                    strArray45 = label.Text.Trim().Split(new char[] { '#' });
                                    strArray44 = str27.Trim().Split(new char[] { '#' });
                                    if (strArray44.Length <= strArray45.Length)
                                    {
                                        num47 = 0;
                                        num19 = 0;
                                        while (num19 < strArray45.Length)
                                        {
                                            if (strArray45[num19].Trim() != "")
                                            {
                                                num47++;
                                            }
                                            num19++;
                                        }
                                        num46 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num47);
                                        num43 = 0.0;
                                        num44 = 0;
                                        while (num44 < strArray44.Length)
                                        {
                                            if (strArray44[num44].Trim() != "")
                                            {
                                                num45 = 0;
                                                while (num45 < strArray45.Length)
                                                {
                                                    if (strArray45[num45].Trim() == strArray44[num44].Trim())
                                                    {
                                                        num43 += num46;
                                                    }
                                                    num45++;
                                                }
                                            }
                                            num44++;
                                        }
                                        if (!(num43 == 0.0))
                                        {
                                            strArray43[num42] = num43.ToString("0.00");
                                            this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num43.ToString("0.00"))));
                                        }
                                        else
                                        {
                                            strArray43[num42] = "-" + strArray3[1].Trim();
                                            this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[1].Trim())));
                                        }
                                    }
                                    else
                                    {
                                        strArray43[num42] = "-" + strArray3[1].Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[1].Trim())));
                                    }
                                    goto Label_14C9;
                                }
                                strArray45 = label.Text.Trim().Split(new char[] { '#' });
                                strArray44 = str27.Trim().Split(new char[] { '#' });
                                num47 = 0;
                                if (strArray44.Length > strArray45.Length)
                                {
                                    strArray43[num42] = "-" + strArray3[1].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[1].Trim())));
                                    goto Label_14C9;
                                }
                                num19 = 0;
                                while (num19 < strArray45.Length)
                                {
                                    if (strArray45[num19].Trim() != "")
                                    {
                                        num47++;
                                    }
                                    num19++;
                                }
                                num46 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num47);
                                num43 = 0.0;
                                for (num44 = 0; num44 < strArray44.Length; num44++)
                                {
                                    if (strArray44[num44].Trim() != "")
                                    {
                                        if (label.Text.Trim().IndexOf(strArray44[num44].Trim()) == -1)
                                        {
                                            goto Label_1196;
                                        }
                                        for (num45 = 0; num45 < strArray45.Length; num45++)
                                        {
                                            if (strArray45[num45].Trim() == strArray44[num44].Trim())
                                            {
                                                num43 += num46;
                                            }
                                        }
                                    }
                                }
                                goto Label_11A1;
                            Label_1196:
                                num43 = 0.0;
                            Label_11A1:
                                if (num43 == 0.0)
                                {
                                    strArray43[num42] = "-" + strArray3[1].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[1].Trim())));
                                }
                                else
                                {
                                    strArray43[num42] = num43.ToString("0.00");
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num43.ToString("0.00"))));
                                }
                                goto Label_14C9;
                            Label_125B:;
                                string[] strArray46 = label.Text.Trim().Split(new char[] { '#' });
                                string[] strArray47 = str27.Trim().Split(new char[] { '#' });
                                if (strArray46.Length != strArray47.Length)
                                {
                                    strArray43[num42] = "-" + strArray3[1].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[1].Trim())));
                                }
                                else
                                {
                                    int num48 = 0;
                                    for (int num49 = 0; num49 < strArray46.Length; num49++)
                                    {
                                        if (strArray46[num49].Trim() != "")
                                        {
                                            for (int num50 = 0; num50 < strArray47.Length; num50++)
                                            {
                                                if (!((strArray47[num50].Trim() != "") ? !(strArray47[num50].Trim() == strArray46[num49].Trim()) : true))
                                                {
                                                    num48++;
                                                }
                                            }
                                        }
                                    }
                                    if (num48 != strArray46.Length)
                                    {
                                        strArray43[num42] = "-" + strArray3[1].Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[1].Trim())));
                                    }
                                    else
                                    {
                                        strArray43[num42] = this.labFen.Text.Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(this.labFen.Text.Trim())));
                                    }
                                }
                                goto Label_14C9;
                            Label_143E:
                                strArray42[num42] = "未填写";
                                this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                strArray43[num42] = "-" + strArray2[1].Trim();
                                this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray2[1].Trim())));
                            Label_14C9:
                                str = "";
                                str2 = "";
                                for (int j = 0; j < strArray42.Length; j++)
                                {
                                    if (strArray42[j].Trim() != "")
                                    {
                                        str = str + strArray42[j].Trim() + "|";
                                        str2 = str2 + strArray43[j].Trim() + "|";
                                    }
                                }
                                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set RubricDWrite='", str, "',RubricDFen='", str2, "',CheckUserD='", str3, "'  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }));
                                continue;
                            Label_16C6:
                                if (label2.Text.Trim() == strArray41[index].Trim())
                                {
                                    goto Label_16F4;
                                }
                                index++;
                            Label_16E9:
                                if (index < strArray41.Length)
                                {
                                    goto Label_16C6;
                                }
                                goto Label_16F7;
                            Label_16F4:
                                num40 = index;
                            Label_16F7:
                                if (list.SelectedIndex == -1)
                                {
                                    strArray39[num40] = "未填写";
                                    strArray40[num40] = "-" + strArray2[2].Trim();
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray2[2].Trim())));
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                else
                                {
                                    if (!(label.Text.Trim().Replace("<BR>", "").Replace("<br>", "").Replace("&nbsp;", "").ToUpper() == list.SelectedItem.Value.Trim()))
                                    {
                                        strArray40[num40] = "-" + strArray3[2].Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) - Convert.ToDouble(strArray3[2].Trim())));
                                    }
                                    else
                                    {
                                        strArray40[num40] = this.labFen.Text.Trim();
                                        this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(this.labFen.Text.Trim())));
                                    }
                                    strArray39[num40] = list.SelectedItem.Value.Trim();
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                str = "";
                                str2 = "";
                                for (int k = 0; k < strArray39.Length; k++)
                                {
                                    if (strArray39[k].Trim() != "")
                                    {
                                        str = str + strArray39[k].Trim() + "|";
                                        str2 = str2 + strArray40[k].Trim() + "|";
                                    }
                                }
                                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set RubricBWrite='", str, "',RubricBFen='", str2, "',CheckUserB='", str3, "'  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }));
                                continue;
                            Label_1B82:
                                if (label2.Text.Trim() == strArray38[index].Trim())
                                {
                                    goto Label_1BB0;
                                }
                                index++;
                            Label_1BA5:
                                if (index < strArray38.Length)
                                {
                                    goto Label_1B82;
                                }
                                goto Label_1BB3;
                            Label_1BB0:
                                num33 = index;
                            Label_1BB3:
                                str35 = this.publicFun_0.GetValues("select ParmValue from SysParmInfo where ParmMemo='IsCheckDRubric'", "ParmValue").Trim();
                                if ((str35.Trim() != "") && !(str35.Trim() == "N"))
                                {
                                    str35 = "Z";
                                }
                                else if (str35.Trim() == "")
                                {
                                    str35 = "N";
                                }
                                if (str35 == "N")
                                {
                                    label.Text = label.Text.ToLower();
                                    box7.Text = box7.Text.ToLower();
                                    box6.Text = box6.Text.ToLower();
                                    box5.Text = box5.Text.ToLower();
                                    box4.Text = box4.Text.ToLower();
                                    box3.Text = box3.Text.ToLower();
                                    box2.Text = box2.Text.ToLower();
                                }
                                string[] strArray32 = label.Text.Trim().Replace("<BR>", "").Replace("<br>", "").Replace("&nbsp;", "").Split(new char[] { '#' });
                                int num38 = 0;
                                num19 = 0;
                                while (num19 < strArray32.Length)
                                {
                                    if (strArray32[num19].Trim() != "")
                                    {
                                        num38++;
                                    }
                                    num19++;
                                }
                                double num36 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num38);
                                double num34 = 0.0;
                                string str34 = "0";
                                if (box7.Visible)
                                {
                                    str27 = str27 + box7.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                    if (box7.Text.Trim() == "")
                                    {
                                        str34 = "1";
                                    }
                                }
                                if (box6.Visible)
                                {
                                    if (box6.Text.Trim() == "")
                                    {
                                        str34 = "1";
                                    }
                                    str27 = str27 + box6.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (box5.Visible)
                                {
                                    if (box5.Text.Trim() == "")
                                    {
                                        str34 = "1";
                                    }
                                    str27 = str27 + box5.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (box4.Visible)
                                {
                                    if (box4.Text.Trim() == "")
                                    {
                                        str34 = "1";
                                    }
                                    str27 = str27 + box4.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (box3.Visible)
                                {
                                    if (box3.Text.Trim() == "")
                                    {
                                        str34 = "1";
                                    }
                                    str27 = str27 + box3.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (box2.Visible)
                                {
                                    if (box2.Text.Trim() == "")
                                    {
                                        str34 = "1";
                                    }
                                    str27 = str27 + box2.Text.Trim().Replace("'", "＇").Replace('#', '＃').Replace("<", "＜").Replace(">", "＞") + "#";
                                }
                                if (str34.Trim() == "1")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                else
                                {
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                if (box6.Text.Trim() == box7.Text.Trim())
                                {
                                    box6.Text = "";
                                }
                                if (box5.Text.Trim() == box7.Text.Trim())
                                {
                                    box5.Text = "";
                                }
                                if (box4.Text.Trim() == box7.Text.Trim())
                                {
                                    box4.Text = "";
                                }
                                if (box3.Text.Trim() == box7.Text.Trim())
                                {
                                    box3.Text = "";
                                }
                                if (box2.Text.Trim() == box7.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                if (box5.Text.Trim() == box6.Text.Trim())
                                {
                                    box5.Text = "";
                                }
                                if (box4.Text.Trim() == box6.Text.Trim())
                                {
                                    box4.Text = "";
                                }
                                if (box3.Text.Trim() == box6.Text.Trim())
                                {
                                    box3.Text = "";
                                }
                                if (box2.Text.Trim() == box6.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                if (box4.Text.Trim() == box5.Text.Trim())
                                {
                                    box4.Text = "";
                                }
                                if (box3.Text.Trim() == box5.Text.Trim())
                                {
                                    box3.Text = "";
                                }
                                if (box2.Text.Trim() == box5.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                if (box3.Text.Trim() == box4.Text.Trim())
                                {
                                    box3.Text = "";
                                }
                                if (box2.Text.Trim() == box4.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                if (box2.Text.Trim() == box3.Text.Trim())
                                {
                                    box2.Text = "";
                                }
                                switch (strArray32.Length)
                                {
                                    case 1:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2F2E;
                                        }
                                        strArray37 = strArray32[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num35 = 0;
                                        goto Label_24E7;

                                    case 2:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2582;
                                        }
                                        strArray37 = strArray32[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num35 = 0;
                                        goto Label_256F;

                                    case 3:
                                        if (!box7.Visible)
                                        {
                                            goto Label_268D;
                                        }
                                        strArray37 = strArray32[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num35 = 0;
                                        goto Label_267A;

                                    case 4:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2818;
                                        }
                                        strArray37 = strArray32[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num35 = 0;
                                        goto Label_2805;

                                    case 5:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2A23;
                                        }
                                        strArray37 = strArray32[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num35 = 0;
                                        goto Label_2A10;

                                    case 6:
                                        if (!box7.Visible)
                                        {
                                            goto Label_2CAE;
                                        }
                                        strArray37 = strArray32[0].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                        num35 = 0;
                                        goto Label_2C9B;

                                    default:
                                        goto Label_2F2E;
                                }
                            Label_24C1:
                                if (strArray37[num35].Trim() == box7.Text.Trim())
                                {
                                    goto Label_24F6;
                                }
                                num35++;
                            Label_24E7:
                                if (num35 < strArray37.Length)
                                {
                                    goto Label_24C1;
                                }
                                goto Label_2F2E;
                            Label_24F6:
                                num34 += num36;
                                goto Label_2F2E;
                            Label_2549:
                                if (strArray37[num35].Trim() == box7.Text.Trim())
                                {
                                    goto Label_257B;
                                }
                                num35++;
                            Label_256F:
                                if (num35 < strArray37.Length)
                                {
                                    goto Label_2549;
                                }
                                goto Label_2582;
                            Label_257B:
                                num34 += num36;
                            Label_2582:
                                if (box6.Visible)
                                {
                                    strArray36 = strArray32[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray36.Length)
                                    {
                                        if (strArray36[num35].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2601;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2F2E;
                            Label_2601:
                                num34 += num36;
                                goto Label_2F2E;
                            Label_2654:
                                if (strArray37[num35].Trim() == box7.Text.Trim())
                                {
                                    goto Label_2686;
                                }
                                num35++;
                            Label_267A:
                                if (num35 < strArray37.Length)
                                {
                                    goto Label_2654;
                                }
                                goto Label_268D;
                            Label_2686:
                                num34 += num36;
                            Label_268D:
                                if (box6.Visible)
                                {
                                    strArray36 = strArray32[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray36.Length)
                                    {
                                        if (strArray36[num35].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2706;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_270D;
                            Label_2706:
                                num34 += num36;
                            Label_270D:
                                if (box5.Visible)
                                {
                                    strArray35 = strArray32[2].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray35.Length)
                                    {
                                        if (strArray35[num35].Trim() == box5.Text.Trim())
                                        {
                                            goto Label_278C;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2F2E;
                            Label_278C:
                                num34 += num36;
                                goto Label_2F2E;
                            Label_27DF:
                                if (strArray37[num35].Trim() == box7.Text.Trim())
                                {
                                    goto Label_2811;
                                }
                                num35++;
                            Label_2805:
                                if (num35 < strArray37.Length)
                                {
                                    goto Label_27DF;
                                }
                                goto Label_2818;
                            Label_2811:
                                num34 += num36;
                            Label_2818:
                                if (box6.Visible)
                                {
                                    strArray36 = strArray32[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray36.Length)
                                    {
                                        if (strArray36[num35].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2891;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2898;
                            Label_2891:
                                num34 += num36;
                            Label_2898:
                                if (box5.Visible)
                                {
                                    strArray35 = strArray32[2].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray35.Length)
                                    {
                                        if (strArray35[num35].Trim() == box5.Text.Trim())
                                        {
                                            goto Label_2911;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2918;
                            Label_2911:
                                num34 += num36;
                            Label_2918:
                                if (box4.Visible)
                                {
                                    strArray34 = strArray32[3].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray34.Length)
                                    {
                                        if (strArray34[num35].Trim() == box4.Text.Trim())
                                        {
                                            goto Label_2997;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2F2E;
                            Label_2997:
                                num34 += num36;
                                goto Label_2F2E;
                            Label_29EA:
                                if (strArray37[num35].Trim() == box7.Text.Trim())
                                {
                                    goto Label_2A1C;
                                }
                                num35++;
                            Label_2A10:
                                if (num35 < strArray37.Length)
                                {
                                    goto Label_29EA;
                                }
                                goto Label_2A23;
                            Label_2A1C:
                                num34 += num36;
                            Label_2A23:
                                if (box6.Visible)
                                {
                                    strArray36 = strArray32[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray36.Length)
                                    {
                                        if (strArray36[num35].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2A9C;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2AA3;
                            Label_2A9C:
                                num34 += num36;
                            Label_2AA3:
                                if (box5.Visible)
                                {
                                    strArray35 = strArray32[2].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray35.Length)
                                    {
                                        if (strArray35[num35].Trim() == box5.Text.Trim())
                                        {
                                            goto Label_2B1C;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2B23;
                            Label_2B1C:
                                num34 += num36;
                            Label_2B23:
                                if (box4.Visible)
                                {
                                    strArray34 = strArray32[3].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray34.Length)
                                    {
                                        if (strArray34[num35].Trim() == box4.Text.Trim())
                                        {
                                            goto Label_2B9C;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2BA3;
                            Label_2B9C:
                                num34 += num36;
                            Label_2BA3:
                                if (box3.Visible)
                                {
                                    strArray33 = strArray32[4].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray33.Length)
                                    {
                                        if (strArray33[num35].Trim() == box3.Text.Trim())
                                        {
                                            goto Label_2C22;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2F2E;
                            Label_2C22:
                                num34 += num36;
                                goto Label_2F2E;
                            Label_2C75:
                                if (strArray37[num35].Trim() == box7.Text.Trim())
                                {
                                    goto Label_2CA7;
                                }
                                num35++;
                            Label_2C9B:
                                if (num35 < strArray37.Length)
                                {
                                    goto Label_2C75;
                                }
                                goto Label_2CAE;
                            Label_2CA7:
                                num34 += num36;
                            Label_2CAE:
                                if (box6.Visible)
                                {
                                    strArray36 = strArray32[1].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray36.Length)
                                    {
                                        if (strArray36[num35].Trim() == box6.Text.Trim())
                                        {
                                            goto Label_2D27;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2D2E;
                            Label_2D27:
                                num34 += num36;
                            Label_2D2E:
                                if (box5.Visible)
                                {
                                    strArray35 = strArray32[2].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray35.Length)
                                    {
                                        if (strArray35[num35].Trim() == box5.Text.Trim())
                                        {
                                            goto Label_2DA7;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2DAE;
                            Label_2DA7:
                                num34 += num36;
                            Label_2DAE:
                                if (box4.Visible)
                                {
                                    strArray34 = strArray32[3].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray34.Length)
                                    {
                                        if (strArray34[num35].Trim() == box4.Text.Trim())
                                        {
                                            goto Label_2E27;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2E2E;
                            Label_2E27:
                                num34 += num36;
                            Label_2E2E:
                                if (box3.Visible)
                                {
                                    strArray33 = strArray32[4].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    num35 = 0;
                                    while (num35 < strArray33.Length)
                                    {
                                        if (strArray33[num35].Trim() == box3.Text.Trim())
                                        {
                                            goto Label_2EA7;
                                        }
                                        num35++;
                                    }
                                }
                                goto Label_2EAE;
                            Label_2EA7:
                                num34 += num36;
                            Label_2EAE:
                                if (box2.Visible)
                                {
                                    string[] strArray31 = strArray32[5].Trim().Replace(":/", "〓").Split(new char[] { '〓' });
                                    for (num35 = 0; num35 < strArray31.Length; num35++)
                                    {
                                        if (strArray31[num35].Trim() == box2.Text.Trim())
                                        {
                                            goto Label_2F27;
                                        }
                                    }
                                }
                                goto Label_2F2E;
                            Label_2F27:
                                num34 += num36;
                            Label_2F2E:
                                if (str27.Trim() != "")
                                {
                                    str27 = str27.Replace("|", "｜");
                                    strArray29[num33] = str27.Substring(0, str27.Length - 1);
                                    strArray30[num33] = num34.ToString("0.00");
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num34.ToString("0.00"))));
                                }
                                else
                                {
                                    strArray29[num33] = "未填写";
                                    strArray30[num33] = "0";
                                }
                                str = "";
                                str2 = "";
                                for (int m = 0; m < (strArray29.Length - 1); m++)
                                {
                                    if (strArray29[m].Trim() == "")
                                    {
                                        strArray29[m] = "未填写";
                                    }
                                    str = str + strArray29[m].Trim() + "|";
                                    str2 = str2 + strArray30[m].Trim() + "|";
                                }
                                SqlConnection connection6 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection6.Open();
                                SqlCommand command6 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricFWrite=@RubricFWrite,RubricFFen=@RubricFFen,CheckUserF=@CheckUserF  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection6);
                                command6.Parameters.Add("@RubricFWrite", SqlDbType.Text).Value = str;
                                command6.Parameters.Add("@RubricFFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command6.Parameters.Add("@CheckUserF", SqlDbType.VarChar, 20).Value = str3;
                                command6.ExecuteNonQuery();
                                command6.Dispose();
                                connection6.Close();
                                connection6.Dispose();
                                continue;
                            Label_3243:
                                if (label2.Text.Trim() == strArray28[index].Trim())
                                {
                                    goto Label_3271;
                                }
                                index++;
                            Label_3266:
                                if (index < strArray28.Length)
                                {
                                    goto Label_3243;
                                }
                                goto Label_3274;
                            Label_3271:
                                num28 = index;
                            Label_3274:;
                                string[] strArray27 = label.Text.Trim().Split(new char[] { ',' });
                                int num31 = 0;
                                num19 = 0;
                                while (num19 < strArray27.Length)
                                {
                                    if (strArray27[num19].Trim() != "")
                                    {
                                        num31++;
                                    }
                                    num19++;
                                }
                                if (num31 == 0)
                                {
                                    num31 = 1;
                                }
                                double num30 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num31);
                                double num29 = 0.0;
                                if (box.Text.Trim() == "")
                                {
                                    strArray25[num28] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                else
                                {
                                    num16 = 0;
                                    while (num16 < strArray27.Length)
                                    {
                                        if ((strArray27[num16].Trim() != "") && (box.Text.Trim().IndexOf(strArray27[num16].Trim()) != -1))
                                        {
                                            num29 += num30;
                                        }
                                        num16++;
                                    }
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num29.ToString("0.00"))));
                                    str8 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    str8 = base.Server.HtmlEncode(str8).Replace("\n", " <br/>").Replace(" ", " ");
                                    str8 = base.Server.HtmlDecode(str8);
                                    strArray25[num28] = str8;
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                strArray26[num28] = num29.ToString("0.00");
                                str = "";
                                str2 = "";
                                for (int n = 0; n < strArray25.Length; n++)
                                {
                                    if (strArray25[n].Trim() != "")
                                    {
                                        str = str + strArray25[n].Trim() + "|";
                                        str2 = str2 + strArray26[n].Trim() + "|";
                                    }
                                }
                                SqlConnection connection5 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection5.Open();
                                SqlCommand command5 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricAWrite=@RubricAWrite,RubricAFen=@RubricAFen,CheckUserA=@CheckUserA  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection5);
                                command5.Parameters.Add("@RubricAWrite", SqlDbType.Text).Value = str;
                                command5.Parameters.Add("@RubricAFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command5.Parameters.Add("@CheckUserA", SqlDbType.VarChar, 20).Value = str3;
                                command5.ExecuteNonQuery();
                                command5.Dispose();
                                connection5.Close();
                                connection5.Dispose();
                                continue;
                            Label_37A7:
                                if (label2.Text.Trim() == strArray24[index].Trim())
                                {
                                    goto Label_37D5;
                                }
                                index++;
                            Label_37CA:
                                if (index < strArray24.Length)
                                {
                                    goto Label_37A7;
                                }
                                goto Label_37D8;
                            Label_37D5:
                                num26 = index;
                            Label_37D8:
                                if (box.Text.Trim() == "")
                                {
                                    strArray22[num26] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                else
                                {
                                    str8 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    str8 = base.Server.HtmlEncode(str8).Replace("\n", " <br/>").Replace(" ", " ");
                                    str8 = base.Server.HtmlDecode(str8);
                                    strArray22[num26] = str8;
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                strArray23[num26] = "0";
                                str = "";
                                str2 = "";
                                for (int num25 = 0; num25 < strArray22.Length; num25++)
                                {
                                    if (strArray22[num25].Trim() != "")
                                    {
                                        str = str + strArray22[num25].Trim() + "|";
                                        str2 = str2 + strArray23[num25].Trim() + "|";
                                    }
                                }
                                SqlConnection connection4 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection4.Open();
                                SqlCommand command4 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricCWrite=@RubricCWrite,RubricCFen=@RubricCFen,CheckUserC=@CheckUserC  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection4);
                                command4.Parameters.Add("@RubricCWrite", SqlDbType.Text).Value = str;
                                command4.Parameters.Add("@RubricCFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command4.Parameters.Add("@CheckUserC", SqlDbType.VarChar, 20).Value = str3;
                                command4.ExecuteNonQuery();
                                command4.Dispose();
                                connection4.Close();
                                connection4.Dispose();
                                continue;
                            Label_3BE6:
                                if (label2.Text.Trim() == strArray21[index].Trim())
                                {
                                    goto Label_3C14;
                                }
                                index++;
                            Label_3C09:
                                if (index < strArray21.Length)
                                {
                                    goto Label_3BE6;
                                }
                                goto Label_3C17;
                            Label_3C14:
                                num21 = index;
                            Label_3C17:;
                                string[] strArray20 = label.Text.Trim().Split(new char[] { ',' });
                                int num24 = 0;
                                num19 = 0;
                                while (num19 < strArray20.Length)
                                {
                                    if (strArray20[num19].Trim() != "")
                                    {
                                        num24++;
                                    }
                                    num19++;
                                }
                                if (num24 == 0)
                                {
                                    num24 = 1;
                                }
                                double num23 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num24);
                                double num22 = 0.0;
                                if (box.Text.Trim() != "")
                                {
                                    num16 = 0;
                                    while (num16 < strArray20.Length)
                                    {
                                        if ((strArray20[num16].Trim() != "") && (box.Text.Trim().IndexOf(strArray20[num16].Trim()) != -1))
                                        {
                                            num22 += num23;
                                        }
                                        num16++;
                                    }
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num22.ToString("0.00"))));
                                    str8 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    str8 = base.Server.HtmlEncode(str8).Replace("\n", " <br/>").Replace(" ", " ");
                                    str8 = base.Server.HtmlDecode(str8);
                                    strArray18[num21] = str8;
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                else
                                {
                                    strArray18[num21] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                strArray19[num21] = num22.ToString("0.00");
                                str = "";
                                str2 = "";
                                for (int num20 = 0; num20 < strArray18.Length; num20++)
                                {
                                    if (strArray18[num20].Trim() != "")
                                    {
                                        str = str + strArray18[num20].Trim() + "|";
                                        str2 = str2 + strArray19[num20].Trim() + "|";
                                    }
                                }
                                SqlConnection connection3 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection3.Open();
                                SqlCommand command3 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricTWrite=@RubricTWrite,RubricTFen=@RubricTFen,CheckUserT=@CheckUserT  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection3);
                                command3.Parameters.Add("@RubricTWrite", SqlDbType.Text).Value = str;
                                command3.Parameters.Add("@RubricTFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command3.Parameters.Add("@CheckUserT", SqlDbType.VarChar, 20).Value = str3;
                                command3.ExecuteNonQuery();
                                command3.Dispose();
                                connection3.Close();
                                connection3.Dispose();
                                continue;
                            Label_414A:
                                if (label2.Text.Trim() == strArray17[index].Trim())
                                {
                                    goto Label_4178;
                                }
                                index++;
                            Label_416D:
                                if (index < strArray17.Length)
                                {
                                    goto Label_414A;
                                }
                                goto Label_417B;
                            Label_4178:
                                num14 = index;
                            Label_417B:;
                                string[] strArray16 = label.Text.Trim().Split(new char[] { ',' });
                                int num18 = 0;
                                for (num19 = 0; num19 < strArray16.Length; num19++)
                                {
                                    if (strArray16[num19].Trim() != "")
                                    {
                                        num18++;
                                    }
                                }
                                if (num18 == 0)
                                {
                                    num18 = 1;
                                }
                                double num17 = Convert.ToDouble(this.labFen.Text.Trim()) / ((double) num18);
                                double num15 = 0.0;
                                if (box.Text.Trim() != "")
                                {
                                    for (num16 = 0; num16 < strArray16.Length; num16++)
                                    {
                                        if ((strArray16[num16].Trim() != "") && (box.Text.Trim().IndexOf(strArray16[num16].Trim()) != -1))
                                        {
                                            num15 += num17;
                                        }
                                    }
                                    str8 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    str8 = base.Server.HtmlEncode(str8).Replace("\n", " <br/>").Replace(" ", " ");
                                    str8 = base.Server.HtmlDecode(str8);
                                    strArray14[num14] = str8;
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                else
                                {
                                    strArray14[num14] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                strArray15[num14] = num15.ToString("0.00");
                                str = "";
                                str2 = "";
                                for (int num13 = 0; num13 < strArray14.Length; num13++)
                                {
                                    if (strArray14[num13].Trim() != "")
                                    {
                                        str = str + strArray14[num13].Trim() + "|";
                                        str2 = str2 + strArray15[num13].Trim() + "|";
                                    }
                                }
                                SqlConnection connection2 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection2.Open();
                                SqlCommand command2 = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricANWrite=@RubricANWrite,RubricANFen=@RubricANFen,CheckUserAN=@CheckUserAN  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection2);
                                command2.Parameters.Add("@RubricANWrite", SqlDbType.Text).Value = str;
                                command2.Parameters.Add("@RubricANFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command2.Parameters.Add("@CheckUserAN", SqlDbType.VarChar, 20).Value = str3;
                                command2.ExecuteNonQuery();
                                command2.Dispose();
                                connection2.Close();
                                connection2.Dispose();
                                continue;
                            Label_4672:
                                if (label2.Text.Trim() == strArray13[index].Trim())
                                {
                                    goto Label_46A0;
                                }
                                index++;
                            Label_4695:
                                if (index < strArray13.Length)
                                {
                                    goto Label_4672;
                                }
                                goto Label_46A3;
                            Label_46A0:
                                num12 = index;
                            Label_46A3:
                                if (this.txtSubPaper.Value.Trim() == "1")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                    this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                if (this.txtSubPaper.Value.Trim() == "2")
                                {
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                strArray12[num12] = "0";
                                str = "";
                                str2 = "";
                                for (int num11 = 0; num11 < strArray11.Length; num11++)
                                {
                                    if (strArray11[num11].Trim() != "")
                                    {
                                        str = str + strArray11[num11].Trim() + "|";
                                        str2 = str2 + strArray12[num11].Trim() + "|";
                                    }
                                }
                                SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                                connection.Open();
                                SqlCommand command = new SqlCommand(string.Concat(new object[] { "update CheckPaper set RubricOWrite=@RubricOWrite,RubricOFen=@RubricOFen,CheckUserO=@CheckUserO  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }), connection);
                                command.Parameters.Add("@RubricOWrite", SqlDbType.Text).Value = str;
                                command.Parameters.Add("@RubricOFen", SqlDbType.VarChar, 0x3e8).Value = str2;
                                command.Parameters.Add("@CheckUserO", SqlDbType.VarChar, 20).Value = str3;
                                command.ExecuteNonQuery();
                                command.Dispose();
                                connection.Close();
                                connection.Dispose();
                                continue;
                            Label_49E8:
                                if (label2.Text.Trim() == strArray10[index].Trim())
                                {
                                    goto Label_4A16;
                                }
                                index++;
                            Label_4A0B:
                                if (index < strArray10.Length)
                                {
                                    goto Label_49E8;
                                }
                                goto Label_4A19;
                            Label_4A16:
                                num8 = index;
                            Label_4A19:
                                str7 = this.publicFun_0.GetValues("select ParmValue from SysParmInfo where ParmMemo='IsCheckJRubric'", "ParmValue").Trim();
                                if (!(str7.Trim() == "") ? !(str7.Trim() == "N") : false)
                                {
                                    str7 = "Z";
                                }
                                else if (str7.Trim() == "")
                                {
                                    str7 = "N";
                                }
                                if (box.Text.Trim() != "")
                                {
                                    strArray5[num8] = box.Text.Trim().Replace("|", "｜").Replace("'", "＇");
                                    if (this.txtSubPaper.Value.Trim() == "1")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value.Replace("," + this.txtRubricSortID.Value + ",", "");
                                        this.txtWriteID.Value = this.txtWriteID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                    if (this.txtSubPaper.Value.Trim() == "2")
                                    {
                                        this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                    }
                                }
                                else
                                {
                                    strArray5[num8] = "未填写";
                                    this.txtErrorID.Value = this.txtErrorID.Value + "," + this.txtRubricSortID.Value + ",";
                                }
                                strArray6[num8] = " ";
                                str = "";
                                str2 = "";
                                if (box.Text.Trim() != "")
                                {
                                    int length = 0;
                                    double num10 = 0.0;
                                    double num9 = 0.0;
                                    string[] strArray9 = this.labFen.Text.Split(new char[] { '_' });
                                    string[] strArray7 = label.Text.Split(new char[] { '#' });
                                    string[] strArray8 = box.Text.Trim().Replace("|", "｜").Replace("'", "＇").Split(new char[] { '#' });
                                    if (strArray8.Length < strArray7.Length)
                                    {
                                        length = strArray8.Length;
                                    }
                                    else
                                    {
                                        length = strArray7.Length;
                                    }
                                    if (!(strArray9[num8].Trim() == ""))
                                    {
                                        num10 = Convert.ToDouble(strArray9[num8].Trim());
                                    }
                                    else
                                    {
                                        num10 = 0.0;
                                    }
                                    num9 = 0.0;
                                    for (int num6 = 0; num6 < length; num6++)
                                    {
                                        if (!(str7 == "N"))
                                        {
                                            if (!((strArray7[num6].Trim() != "") ? !(strArray8[num6].Trim() == strArray7[num6].Trim()) : true))
                                            {
                                                num9 += num10;
                                            }
                                        }
                                        else if (!((strArray7[num6].Trim().ToUpper() != "") ? !(strArray8[num6].ToUpper().Trim() == strArray7[num6].Trim().ToUpper()) : true))
                                        {
                                            num9 += num10;
                                        }
                                    }
                                    strArray6[num8] = num9.ToString("0.00");
                                    this.ViewState["PaperSumFen"] = Convert.ToString((double) (Convert.ToDouble(this.ViewState["PaperSumFen"]) + Convert.ToDouble(num9.ToString("0.00"))));
                                }
                                else
                                {
                                    strArray6[num8] = "0";
                                }
                                str = "";
                                str2 = "";
                                for (int num5 = 0; num5 < (strArray5.Length - 1); num5++)
                                {
                                    if (strArray5[num5].Trim() == "")
                                    {
                                        strArray5[num5] = "未填写";
                                    }
                                    str = str + strArray5[num5].Trim() + "|";
                                    str2 = str2 + strArray6[num5].Trim() + "|";
                                }
                                this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update CheckPaper set RubricJWrite='", str, "',RubricJFen='", str2, "',CheckUserJ='", str3, "'  where UserCode='", this.ExamUserCode.Value, "' and PaperID=", this.int_0 }));
                            }
                            string str6 = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString();
                            TimeSpan span = (TimeSpan) (DateTime.Now - Convert.ToDateTime(this.labUserCode.Text));
                            this.publicFun_0.ExecuteSql(string.Concat(new object[] { "update ExamUser set IsSave='1',LastTime=LastTime-", span.TotalMinutes.ToString(), ",EndTime='", str6, "',LastDate='", DateTime.Now.ToShortDateString(), "' where UserCode='", this.httpCookie_0.Value.Trim(), "' and PaperID=", this.int_0 }));
                            this.ViewState["JoinExamStartTime"] = DateTime.Now.ToString();
                            if (this.txtHideComm.Value.Trim() == "EndExam")
                            {
                                this.method_2("C");
                                if (!(this.labPaperFlag.Text.Trim() == "Y"))
                                {
                                    this.method_2("D");
                                }
                                else
                                {
                                    this.method_2("E");
                                    this.method_0();
                                }
                                string str4 = "";
                                switch (this.ViewState["ExamType"].ToString().Trim())
                                {
                                    case "A":
                                        str4 = "../Persion/ExamHistoryList.aspx";
                                        break;

                                    case "B":
                                        str4 = "../Persion/StudyHistoryList.aspx";
                                        break;

                                    case "C":
                                        str4 = "FrmExamInfo.aspx?ID=" + this.int_0;
                                        break;
                                }
                                base.Response.Write("<script>alert('您的考试得分为：" + this.ViewState["PaperSumFen"].ToString() + "分，考试用时：" + span.TotalMinutes.ToString("0.0") + "分钟');window.location.href='" + str4 + "';</script>");
                            }
                        }
                        catch
                        {
                            this.method_2("G");
                            base.Response.Write("<script>window.location.href='SysError.aspx';</script>");
                        }
                    }
                    string[] strArray = this.ViewState["SumRubricListID"].ToString().Split(new char[] { ',' });
                    if (!(this.txtSubPaper.Value != "0"))
                    {
                        this.txtBSubmit.Value = "2";
                    }
                    else if ((Convert.ToInt32(this.ViewState["NowRubricLocation"].ToString()) + 1) < strArray.Length)
                    {
                        this.txtRubricSortID.Value = Convert.ToString((int) (Convert.ToInt32(this.txtRubricSortID.Value.Trim()) + 1));
                    }
                    this.ViewState["NowRubricLocation"] = this.txtRubricSortID.Value;
                    this.strJumpRubricID = Convert.ToString((int) (Convert.ToInt32(this.txtRubricSortID.Value) - 1));
                    if (Convert.ToInt32(this.strJumpRubricID) < 0)
                    {
                        this.strJumpRubricID = "0";
                    }
                    if (Convert.ToInt32(this.ViewState["NowRubricLocation"].ToString()) < strArray.Length)
                    {
                        this.method_1();
                    }
                    else
                    {
                        this.txtBSubmit.Value = "1";
                    }
                }
                else
                {
                    if (this.labUserCode.Text.Length <= 6)
                    {
                        this.labUserCode.Text = DateTime.Now.ToString();
                    }
                    this.ViewState["IEBack"] = "0";
                    this.labPerRubricType.Text = "";
                    this.labRubricSortID.Text = "0";
                    this.ViewState["LoginTime"] = DateTime.Now.ToString();
                    this.ViewState["PaperSumFen"] = "0";
                    this.ViewState["SumRubricListID"] = "";
                    this.ViewState["RubricMemo"] = "";
                    this.ViewState["RubricSort"] = "";
                    this.ViewState["RubricFen"] = "";
                    this.ViewState["NowRubricLocation"] = "0";
                    this.strJumpRubricID = "0";
                    this.ExamUserCode.Value = this.httpCookie_0.Value;
                    string str47 = "";
                    SqlConnection connection7 = new SqlConnection(ConfigurationManager.ConnectionStrings["Conn"].ConnectionString);
                    connection7.Open();
                    SqlCommand command7 = new SqlCommand(string.Concat(new object[] { "select b.JoinExamNum,a.JoinExamNum as ExamNum,a.IsSave,a.StartTime,a.EndTime,a.ExamType,a.Flag,a.ExamName from ExamUser a,PaperInfo b where b.ID=a.PaperID and a.UserCode='", this.httpCookie_0.Value.Trim(), "' and a.PaperID=", this.int_0 }), connection7);
                    SqlDataReader reader = command7.ExecuteReader(CommandBehavior.CloseConnection);
                    if (reader.Read())
                    {
                        this.ViewState["ExamName"] = reader["ExamName"].ToString();
                        str47 = reader["ExamType"].ToString();
                        reader["Flag"].ToString();
                        this.string_0 = reader["IsSave"].ToString();
                        this.ViewState["IsSave"] = this.string_0;
                        this.ViewState["ExamType"] = str47;
                        if ((reader["JoinExamNum"].ToString() != "0") && (Convert.ToInt32(reader["ExamNum"].ToString()) >= Convert.ToInt32(reader["JoinExamNum"].ToString())))
                        {
                            base.Response.Write("<script>alert('对不起，此份试卷考试次数限制已达到上限，无法再操作');window.close();</script>");
                            return;
                        }
                    }
                    reader.Close();
                    command7.Dispose();
                    connection7.Close();
                    connection7.Dispose();
                    if (this.ViewState["ExamType"].ToString() == "C")
                    {
                        this.publicFun_0.ExecuteSql(string.Concat(new object[] { " delete Checkpaper where UserCode='", this.httpCookie_0.Value, "' and PaperID=", this.int_0 }));
                        this.ViewState["IsSave"] = "0";
                    }
                    string str46 = this.publicFun_0.GetValues("select MemberFen from PaperInfo where ID=" + this.int_0, "MemberFen");
                    if (str46.Trim() == "")
                    {
                        str46 = "0";
                    }
                    if (this.publicFun_0.GetValues("select a.UserCode  from UserInfo a,MemberLevel b where getdate()>DateAdd(dd,b.RemoveValue,Convert(dateTime,a.UpdateTime)) and a.UserMember=b.ID and a.UserCode='" + this.httpCookie_0.Value + "' and LevelRemove='C'", "UserCode") == "")
                    {
                        if (this.publicFun_0.OpertionMemberFen(this.httpCookie_0.Value, Convert.ToInt32(str46)))
                        {
                            this.method_4();
                            if (this.ViewState["SumRubricListID"].ToString().Length > 1)
                            {
                                this.ViewState["SumRubricListID"] = this.ViewState["SumRubricListID"].ToString().Substring(0, this.ViewState["SumRubricListID"].ToString().Length - 1);
                            }
                            string strSql = string.Concat(new object[] { "delete from Systip where GetNumber='", this.httpCookie_0.Value, "' and Formtable='PaperInfo' and FormID=", this.int_0 });
                            strSql = strSql + ";insert into SysLogInfo(LogDisp,EditUser,EditUserCode) values('参加[" + this.ViewState["ExamName"].ToString() + "]考试并入考场！','" + this.httpCookie_1.Value + "','" + this.httpCookie_0.Value + "')";
                            this.publicFun_0.ExecuteSql(strSql);
                            this.method_2("B");
                            if (this.ViewState["NowRubricLocation"].ToString().Trim() == "0")
                            {
                                this.strJumpRubricID = "0";
                                this.ViewState["JoinExamStartTime"] = DateTime.Now.ToString();
                                this.txtBSubmit.Value = "2";
                                this.txtRubricSortID.Value = "0";
                                this.method_1();
                            }
                        }
                        else
                        {
                            base.Response.Write("<script>alert('会员积分不足,充值方可进行考试学习！');window.close();</script>");
                        }
                    }
                    else
                    {
                        this.publicFun_0.ExecuteSql("update UserInfo set UserFen=0 where UserCode='" + this.httpCookie_0.Value + "'");
                        base.Response.Write("<script>alert('会员积分不足,充值方可进行考试学习！');window.close();</script>");
                    }
                }
            }
            else
            {
                base.Response.Write("<script language=javascript>window.location.href='FrmLogin.aspx';</script>");
            }
        }
    }
}

